<?php
include_once 'includes/ini.php';
include_once 'includes/metodos.php';
connectSql();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sistema de Podologia</title>

		<link rel="stylesheet" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/themes/base/jquery.ui.all.css"/>
		<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/jquery-1.6.2.js"></script>
		<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.core.js"></script>
		<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.widget.js"></script>
		<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.datepicker.js"></script>
		<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.autocomplete.js"></script>
		<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.position.js"></script>
		<link rel="stylesheet" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/screen.css" type="text" media="screen" title="default" />
		<link rel="stylesheet" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/demos/demos.css"/>
		
		<script>
		$(function() {
			var availableTags = [
				<?php 
					$query = mysql_query("SELECT * FROM tb_cliente");
					while ($row_cliente = mysql_fetch_array($query)){
						echo '"'.utf8_encode($row_cliente['nome']).' '.utf8_encode($row_cliente['sobrenome']).'",';
					}
				?>
			];
			$( "#tags" ).autocomplete({
				source: availableTags
			});
		});
		</script>
		
		<script>
		$(function() {
			$( "#datepicker" ).datepicker();
		});
		</script>
</head>